import { useState, useCallback } from 'react';
import { useModel } from "qps";
export default function Page() {
  const [counter, setCounter] = useState(0);
  const { loading, httpStart, httpOver } = useModel("page1.page1-model" );
  const increment = useCallback(() => {
    setCounter((c) => c + 1)
  }, []);
  const decrement = useCallback(() => {
    setCounter((c) => c - 1)

  }, []);

  return { counter, increment, decrement,loading };
}